package com.kun.music.dao;

import com.kun.music.domain.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectMapper {

    List<Collect> userCollection(int userId);

    int deleteUserCollect(@Param("userId") int userId, @Param("songId") int songId);

    int existSongId(@Param("userId") int user_id, @Param("songId") int song_id);

    int addCollection(Collect collect);
}